<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 14-5-16
 * Time: 下午1:59
 */
namespace Addons\Controller\Uc;
use Addons\Controller\Addon;
use Think\Hook;
class UcAddon extends Addon {
	protected $uc = null;
	public function __construct(){
		parent::__construct();
		Vendor('Discuz.Client');
		$this->uc = new \Client();
	}

	public function checkHtml(){
		if($this->uc->check_login()) $this->assign('auth', session('auth'));
		$this->display('Uc:checkHtml');
	}

	public function checkAjax(){
		if($this->uc->check_login()) $this->assign('auth', session('auth'));
		$this->display('Uc:checkAjax');
	}
}